import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        window: {
            width: '375px',
            height: '603px',
        },
    },
    mutations: {

        setWindow: (state, payload) => {
            state.window = payload
        }

    },
    actions: {

    },
    getters: {

        appWindow: state => {
            return state.window
        }
    }
})

export default store